 
-----------------------------
Generating Binomial N samples
p =  0.2 N =  5
Number of Samples =  2500000
  
  Generating Binomial Distribution samples.
  Date and time plus nanoseconds
Thu Jun 19 17:27:26 EDT 2014
242558330
  
[1] 0.2
[1] 5
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] -0.0017576 -0.0044648 -0.0106424 -0.0231944
[1] "Relative difference of empirical moments from theoretical ones:"
[1] -0.001757600 -0.002480444 -0.002742887 -0.002398098
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] -3.112977e-18 -9.526892e-04  1.692422e-03  2.988480e-03
[1] "Relative difference of empirical central moments from theoretical ones (except first):"
[1] -0.0005292718  0.0004361913  0.0003089826
                         test   P.value KS.test
1                  Chi Square 0.5412497  Passed
2            Likelihood Ratio 0.5412497  Passed
3               Freeman-Tukey 0.6585467  Passed
4 Power Divergence (lambda=2) 0.8982514  Passed
 
-----------------------------
Taking first  1000000 samples
p =  0.2 N =  5
 
[1] 0.2
[1] 5
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] -0.002523 -0.006623 -0.015873 -0.033299
[1] "Relative difference of empirical moments from theoretical ones:"
[1] -0.002523000 -0.003679444 -0.004090979 -0.003442825
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1]  5.297807e-17 -1.583366e-03  2.470232e-03  5.385595e-03

	One-sample Kolmogorov-Smirnov test

data:  bin.unif
D = 0.0013, p-value = 0.6554
alternative hypothesis: two-sided

